gtk_calendar_button_press: check for action_func != NULL
authorDenis Oliver Kropp <dok@src.gnome.org>
Wed, 4 Apr 2001 21:16:47 +0000 (21:16 +0000)
committerDenis Oliver Kropp <dok@src.gnome.org>
Wed, 4 Apr 2001 21:16:47 +0000 (21:16 +0000)
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkcalendar.c

index 5607946dcd979a1ab45a6748f0c6d866b1f95832..72d61e05eca5a8e66d81b68447267809bb25f5a8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
+
+       * gtk/gtkcalendar.c (gtk_calendar_button_press):
+        check for action_func != NULL
+
 2001-04-04  Sven Neumann  <sven@gimp.org>
 
        * tests/testgtk.c (test_init): corrected path to gtk.immodules
index 5607946dcd979a1ab45a6748f0c6d866b1f95832..72d61e05eca5a8e66d81b68447267809bb25f5a8 100644 (file)
@@ -1,3 +1,8 @@
+2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
+
+       * gtk/gtkcalendar.c (gtk_calendar_button_press):
+        check for action_func != NULL
+
 2001-04-04  Sven Neumann  <sven@gimp.org>
 
        * tests/testgtk.c (test_init): corrected path to gtk.immodules
index 5607946dcd979a1ab45a6748f0c6d866b1f95832..72d61e05eca5a8e66d81b68447267809bb25f5a8 100644 (file)
@@ -1,3 +1,8 @@
+2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
+
+       * gtk/gtkcalendar.c (gtk_calendar_button_press):
+        check for action_func != NULL
+
 2001-04-04  Sven Neumann  <sven@gimp.org>
 
        * tests/testgtk.c (test_init): corrected path to gtk.immodules
index 5607946dcd979a1ab45a6748f0c6d866b1f95832..72d61e05eca5a8e66d81b68447267809bb25f5a8 100644 (file)
@@ -1,3 +1,8 @@
+2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
+
+       * gtk/gtkcalendar.c (gtk_calendar_button_press):
+        check for action_func != NULL
+
 2001-04-04  Sven Neumann  <sven@gimp.org>
 
        * tests/testgtk.c (test_init): corrected path to gtk.immodules
index 5607946dcd979a1ab45a6748f0c6d866b1f95832..72d61e05eca5a8e66d81b68447267809bb25f5a8 100644 (file)
@@ -1,3 +1,8 @@
+2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
+
+       * gtk/gtkcalendar.c (gtk_calendar_button_press):
+        check for action_func != NULL
+
 2001-04-04  Sven Neumann  <sven@gimp.org>
 
        * tests/testgtk.c (test_init): corrected path to gtk.immodules
index 5607946dcd979a1ab45a6748f0c6d866b1f95832..72d61e05eca5a8e66d81b68447267809bb25f5a8 100644 (file)
@@ -1,3 +1,8 @@
+2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
+
+       * gtk/gtkcalendar.c (gtk_calendar_button_press):
+        check for action_func != NULL
+
 2001-04-04  Sven Neumann  <sven@gimp.org>
 
        * tests/testgtk.c (test_init): corrected path to gtk.immodules
index 5607946dcd979a1ab45a6748f0c6d866b1f95832..72d61e05eca5a8e66d81b68447267809bb25f5a8 100644 (file)
@@ -1,3 +1,8 @@
+2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
+
+       * gtk/gtkcalendar.c (gtk_calendar_button_press):
+        check for action_func != NULL
+
 2001-04-04  Sven Neumann  <sven@gimp.org>
 
        * tests/testgtk.c (test_init): corrected path to gtk.immodules
index ad3571400aa09a772bb31c325f5e95414dd1dd66..00df16af66e5659ac01c1897f45445191d94e762 100644 (file)
@@ -2332,7 +2332,7 @@ gtk_calendar_button_press (GtkWidget        *widget,
     action_func = gtk_calendar_set_year_next;
 
   /* only call the action on single click, not double */
-  if (event->type == GDK_BUTTON_PRESS)
+  if (action_func && event->type == GDK_BUTTON_PRESS)
     (* action_func) (calendar);
   
   return action_func != NULL;